// 设置变量
@bg-color: #b7d4a8;
// 清除默认样式
* {
  margin: 0;
  padding: 0;
  // 改变盒子模型的计算方式
  box-sizing: border-box;
}
body {
  font: bold 20px "Courier";
}
.container {
  width: 360px;
  height: 420px;
  background-color: @bg-color;
  margin: 50px auto;
  border: solid 10px black;
  border-radius: 20px;
  padding: 20px;
  .stage {
    position: relative;
    width: 304px;
    height: 304px;
    border: solid 2px black;
    .snake {
      & > div {
        position: absolute;
        height: 10px;
        width: 10px;
        background-color: #000;
        border: 1px solid @bg-color;
      }
    }
    .food {
      position: absolute;
      height: 10px;
      width: 10px;
      background-color: #000;
      border: 1px solid @bg-color;
      left: 40px;
      top: 100px;
    }
  }
  .score-panel {
    display: flex;
    justify-content: space-between;
    width: 300px;
    margin-top: 20px;
  }
}
